package com.hliushi.learn.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @ClassName MicroServiceUrl
 * @Description 专门保存微服务的url
 * @Author hliushi
 * @Date 2021/7/5 22:16
 * @Version V1.0
 **/
// @Component
@ConfigurationProperties(prefix = "url")    // -> 对应了一个注解@EnableConfigurationProperties
public class MicroServiceUrl {

    private String orderUrl;
    private String userUrl;
    private String shoppingUrl;

    public String getOrderUrl() {
        return orderUrl;
    }

    public void setOrderUrl(String orderUrl) {
        this.orderUrl = orderUrl;
    }

    public String getUserUrl() {
        return userUrl;
    }

    public void setUserUrl(String userUrl) {
        this.userUrl = userUrl;
    }

    public String getShoppingUrl() {
        return shoppingUrl;
    }

    public void setShoppingUrl(String shoppingUrl) {
        this.shoppingUrl = shoppingUrl;
    }

    @Override
    public String toString() {
        return "MicroServiceUrl{" +
                "orderUrl='" + orderUrl + '\'' +
                ", userUrl='" + userUrl + '\'' +
                ", shoppingUrl='" + shoppingUrl + '\'' +
                '}';
    }
}
